<?php include("/includes/header.php") ?>
<?php include("/includes/sidebar.php") ?>

<!-- <div class="header">
	<span>
		<a href="">
			<i class="fa fa-home"></i> Home 
		</a>
	</span>
</div>
 -->
<!-- <div class="breadcumb">
	<ul>
		<li>
			<a href="#">
				<i class="fa fa-home"></i> Beranda
			</a>
		</li>
	</ul>
	<div class="clear"></div>
</div> -->

<div class="content">
		<h2>Om Swatyastu</h2>
		<hr>
		<h4>Welcome to Puri Nusa Digital Office</h4>
		<hr>
		<blockquote>
			Notice the sidebar on your right side of your screen, please use this sidebar to navigate through this application feature.
			<br>
			<br>
			Good luck, and have a nice day.
		</blockquote>
		<hr>

		<!-- <input id="demoGetInput" name="harga" class="auto" type="text" data-a-sep="." data-a-dec="," data-a-sign="Rp " style="border:1px solid #e1e1e1; text-align:right;">
		<br>
		<button id="demoCek" class="btn">Cek!</button> -->


</div>

<?php 
	// $sql_fo = "SELECT a.id, a.real_paid, b.id AS id_table_agent, b.komisi, DATE(a.checkout) - DATE(a.checkin) AS days FROM front_office a 
	// LEFT JOIN agent b ON a.idagent = b.id
	// WHERE a.idagent != '' AND a.is_paid = 1";
	// $query_fo = mysql_query($sql_fo);
	// $f = 0;
	// while ($fo = mysql_fetch_array($query_fo)) {
	// 	$bayar = $fo[real_paid] * $fo[days];
	// 	$komisi = $bayar * $fo[komisi] / 100;
	// 	$sql_insert = "INSERT INTO agent_paid (id_fo,id_agent,is_paid,comission) 
	// 	VALUES ('".$fo[id]."', '".$fo[id_table_agent]."', 1, '".$komisi."')";
	// 	$query_insert = mysql_query($sql_insert);
	// 	echo $f."<br>";
	// 	echo $sql_insert."<br>";
	// 	$f++;
	// }
?>

<div class="footer">
</div>

<?php include("/includes/footer.php") ?>  


<SCRIPT TYPE="text/javascript">
	$(document).ready(function() {
		$('input[name=harga]').autoNumeric();

		$('.content').on('click', '#demoCek', function(event) {
			alert($('#demoGetInput').autoNumeric('get'));
		});

	});
</SCRIPT>
